//
//  Contentmanager.h
//  Void Dead
//
//  Created by Sidney Just on 14.09.09.
//  Copyright 2009 by Sidney Just
//  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; 
//  either version 3 of the License, or (at your option) any later version.
//  
//  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
//  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
//  

#import <Foundation/Foundation.h>
#import "Engine.h"

#import "panelManager.h"
#import "panel.h"
#import "Animation.h"

#import "TextureManager.h"

#import "labelManager.h"
#import "label.h"


@interface VD_ContentManager : NSObject {
	VD_PanelManager *panMan;
	VD_TextureManager *texMan;
	VD_labelManager *lblMan;
}

- (VD_ParticleEmitter *)createParticleEmitter;
- (VD_Panel *)createPanel:(int)layer;
- (VD_Animation *)createAnimation:(VD_Panel *)pan withStart:(float)startPoint End:(float)endPoint Speed:(float)speed Size:(float)tileSize andLeap:(float)leap;
- (void)updatePanel:(VD_Panel *)pan withAtlas:(BOOL)at forAnimation:(VD_Animation *)anim;
- (VD_Panel *)isTouchInPanel:(CGPoint)pos;
- (VD_Panel *)isTouchInPanel:(CGPoint)pos andInLayer:(int)layer;
- (void)deleteParticleEmitter:(VD_ParticleEmitter *)emit;
- (void)deletePanel:(VD_Panel *)pan;
- (void)deleteAnimation:(VD_Animation *)ani;
- (VD_Panel *)p_trace:(CGPoint)start :(CGPoint)end;
- (VD_Panel *)nextPanel:(VD_Panel *)pan;
- (void)createDefaultShape:(VD_Panel *)pan;

- (int)loadATexture:(NSString *)str;
- (void)deleteTexture:(NSString *)str;

- (VD_label *)createLabel;
- (void)deleteLabel:(VD_label *)lbl;

@end
